<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'equipment-form',
	'enableAjaxValidation'=>false,
        'htmlOptions'=>array(
            'enctype'=>'multipart/form-data',
        )
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
        <?php if(isset($model->image)):?>
            <img src="<?=getImageBySize($model->image,250,250);?>"/>
        <?php endif?>
      
        
	<div class="row">
		<?php echo $form->labelEx($model,'custno'); ?>
                <div class="model-data">
                    <?php echo $model->custno; ?>
                </div>
		
		<?php echo $form->error($model,'custno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'locno'); ?>
                <div class="model-data">
                    <?php echo $model->locno; ?>
                </div>
		
		<?php echo $form->error($model,'locno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mfg'); ?>
                <div class="model-data">
		<?php echo $model->mfg; ?>
                </div>
                <?php echo $form->error($model,'mfg'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'model'); ?>
                <div class="model-data">
		<?php echo $model->model; ?>
                </div>
                <?php echo $form->error($model,'model'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'serial'); ?>
		 <div class="model-data">
		<?php echo $model->serial; ?>
                </div>
		<?php echo $form->error($model,'serial'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'install'); ?>
		 <div class="model-data">
		<?php echo $model->install; ?>
                </div>
		<?php echo $form->error($model,'install'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'removed'); ?>
		 <div class="model-data">
		<?php echo $model->removed; ?>
                </div>
		<?php echo $form->error($model,'removed'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'warranty'); ?>
		 <div class="model-data">
		<?php echo $model->warranty; ?>
                </div>
		<?php echo $form->error($model,'warranty'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'seragrno'); ?>
		<div class="model-data">
		<?php echo $model->seragrno; ?>
                </div>
		<?php echo $form->error($model,'seragrno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'equiploc'); ?>
		<div class="model-data">
		<?php echo $model->equiploc; ?>
                </div>
		<?php echo $form->error($model,'equiploc'); ?>
	</div>

	

	<div class="row">
		<?php echo $form->labelEx($model,'invoice'); ?>
		<div class="model-data">
		<?php echo $model->invoice; ?>
                </div>
		<?php echo $form->error($model,'invoice'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'eqtype'); ?>
                <div class="model-data">
		<?php echo $model->eqtype; ?>
                </div>
		<?php echo $form->error($model,'eqtype'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'plan'); ?>
		<?php echo $form->dropDownList($model,'plan',$model->planTypeList,array('disabled'=>'disabled')); ?>
		<?php echo $form->error($model,'plan'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->dropDownList($model,'status',$model->statusList,array('disabled'=>'disabled')); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>



	<div class="row">
		<?php echo $form->labelEx($model,'pmrequired'); ?>
		<?php echo $form->dropDownList($model,'pmrequired',$model->pmrequiredList,array('disabled'=>'disabled')); ?>
		<?php echo $form->error($model,'pmrequired'); ?>
	</div>
        
        <div class="row">
		<?php echo $form->labelEx($model,'notes'); ?>
            <div class ="model-data"><?php echo $model->notes ?></div>
		<?php echo $form->error($model,'notes'); ?>
	</div>
        
	<div class="row_buttons">
		<a href="javascript:history.go(-1)">Back</a>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->